<?php


namespace app\common\middleware;


class IsPlatform
{
    public function handle($request, \Closure $next)
    {
        // 是否为机构
        $request->is_platform = $request->mhm_id === 1;

        return $next($request);
    }
}